package cn.xopencode.recordservice.rpc.maintransformer;

import cn.xopencode.common.framework.vo.CommonResult;
import cn.xopencode.common.framework.vo.PageResult;
import cn.xopencode.recordservice.rpc.maintransformer.dto.MainTransformerRecordCreateDTO;
import cn.xopencode.recordservice.rpc.maintransformer.dto.MainTransformerRecordPageDTO;
import cn.xopencode.recordservice.rpc.maintransformer.vo.MainTransformerRecordPageVO;
import cn.xopencode.recordservice.rpc.maintransformer.vo.MainTransformerRecordUpdateVO;

/**
 * 主变巡检记录 RPC
 */
public interface MainTransformerRecordRpc {
    /**
     * 新增主变巡检记录
     *
     * @param createDTO
     * @return
     */
    CommonResult<Integer> createMainTransformerRecord(MainTransformerRecordCreateDTO createDTO);

    /**
     * 获得主变巡检记录分页
     *
     * @param pageDTO
     * @return
     */
    CommonResult<PageResult<MainTransformerRecordPageVO>> pageMainTransformerRecord(MainTransformerRecordPageDTO pageDTO);

    /**
     * 根据记录id获取主变巡检记录详情
     * @param id
     * @return
     */
    CommonResult<MainTransformerRecordUpdateVO> getMainTransformerRecordById(String id);
}
